package cn.edu.guet.tts.service.impl;

import cn.edu.guet.tts.entity.TbTicket;
import cn.edu.guet.tts.mapper.TbTicketMapper;
import cn.edu.guet.tts.service.ITbTicketService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 车票管理表 服务实现类
 * </p>
 *
 * @author test
 * @since 
 */
@Service
public class TbTicketServiceImpl extends ServiceImpl<TbTicketMapper, TbTicket> implements ITbTicketService {

    @Autowired
    private TbTicketMapper tbTicketMapper;
    @Override
    public void updateTicketById(List<Integer> ticketId) {
        tbTicketMapper.updateTicketById(ticketId);
    }

    @Override
    public int deleteByTrainId(int trainId) {
        return tbTicketMapper.deleteByTrainId(trainId);
    }
}
